package com.bdqn.hospital.service.impl;

import com.bdqn.hospital.mapper.ScheduleMapper;
import com.bdqn.hospital.pojo.Schedule;
import com.bdqn.hospital.mapper.ScheduleMapper;
import com.bdqn.hospital.service.ScheduleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version : 1.0
 * @Author :guogd
 * @createTime: 2023/03/01 14:57
 * @Description: com.bdqn.hospital.service.impl
 */
@Service
public class ScheduleServiceImpl implements ScheduleService {
    @Autowired
    private ScheduleMapper scheduleMapper;

    @Override
    public Integer updCountAndTime(Integer id) {
        return scheduleMapper.updCountAndTime(id);
    }


    @Override
    public List<Schedule> getByDepartmentIdAndSign(Integer departmentId, Integer sign) {
        return scheduleMapper.getByDepartmentIdAndSign(departmentId, sign);
    }

    @Override
    public Schedule getByUserId(Integer userId) {
        return scheduleMapper.getByUserId(userId);
    }
}
